package com.hundsun.documentripper.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.hundsun.documentripper.domain.pojo.NodeTemplateField;
import com.hundsun.documentripper.mapper.NodeTemplateFieldMapper;
import com.hundsun.documentripper.service.NodeTemplateFieldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class NodeTemplateFieldServiceImpl implements NodeTemplateFieldService {

    @Autowired
    private NodeTemplateFieldMapper nodeTemplateFieldMapper;

    @Override
    public List<NodeTemplateField> getNodeTemplateFieldListById(String fileNodeTemplateUuid) {
        QueryWrapper<NodeTemplateField> wrapper = new QueryWrapper<>();
        wrapper.eq("node_template_uuid", fileNodeTemplateUuid);
        return nodeTemplateFieldMapper.selectList(wrapper);
    }
}
